package com.simon.nvwo.modules.designerpattern.proxy;

/**
 * 代理类
 * @author 昭毅
 *
 */
public class ProxySubject implements Subject{

	@Override
	public void request() {
		//调用被代理的类执行request()方法
		RealSubject realSubject = new RealSubject();
		realSubject.request();
	}

	public static void main(String[] args) {

		ProxySubject proxySubject=new ProxySubject();

	}

}
